package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.entity.*;
import org.csu.mypetstore.api.persistence.OrderMapper;
import org.csu.mypetstore.api.vo.AccountVO;
import org.csu.mypetstore.api.vo.CartVO;
import org.csu.mypetstore.api.vo.ItemVO;
import org.csu.mypetstore.api.vo.OrderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;

import java.util.ArrayList;
import java.util.List;

public interface OrderService {
        //***************订单模块***************//
        //初始化订单
        CommonResponse initOrder(AccountVO accountVO);

//        //获取所有orders
//        CommonResponse<List<Orders>> getOrderList();

        //通过用户名获取所有orders
        CommonResponse<List<Orders>> getOrderListbyUsername(String username);

        //由orderid获取单个order信息
        CommonResponse<OrderVO> getOrderByOrderId(Integer orderId);

        //生成订单
        CommonResponse insertOrder(OrderVO orderVO);
//
//        //查看未发货订单
//        CommonResponse<List<OrderStatus>> getUndeliveredOrder();
//
//        //查看已发货订单
//        CommonResponse<List<OrderStatus>> getDeliveredOrder();
//
//        //未发货订单发货
//        CommonResponse Deliver(Integer orderId);
//
//        //修改用户订单
//        CommonResponse editOrder(OrderVO orderVO);
//
//        //搜索订单
//        CommonResponse<List<Orders>> searchOrder(String keyword);
}
